'use strict';

import mount from 'koa-mount';
import { api, root } from '../api';

export default function configRoutes(app) {
  app.use(mount('/', root.routes(), root.allowedMethods()));
  app.use(mount('/api', api.routes(), api.allowedMethods()));
  // app.use(mount('/static', Static.routes(), Static.allowedMethods()));
}
